package com.tengfei.main.index.domain.bo;

import com.tengfei.common.core.validate.AddGroup;
import com.tengfei.common.core.validate.EditGroup;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;

/**
 * 轮播图业务对象 ix_banner
 *
 * @author tengfei
 * @date 2022-09-03
 */

@Data
@ApiModel("轮播图业务对象")
public class BannerBo{

    /**
     * bnId
     */
    @ApiModelProperty(value = "bnId",required = true)
    @NotNull(message = "id不能为空", groups = { AddGroup.class, EditGroup.class })
    private Long bnId;

    /**
     * url
     */
    @ApiModelProperty(value = "轮播图url", required = true)
    @NotBlank(message = "url不能为空", groups = { AddGroup.class, EditGroup.class })
    private String bnUrl;

    /**
     * 内容
     */
    @ApiModelProperty(value = "内容", required = true)
    private String bnContent;

    /**
     * 是否展示
     */
    @ApiModelProperty(value = "是否展示", required = true)
    @NotNull(message = "是否展示不能为空", groups = { AddGroup.class, EditGroup.class })
    private Integer bnIsShow;


}
